<div class="destinations view">
<h2><?php  echo __('Destination');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($destination['Destination']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($destination['Destination']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($destination['Destination']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Selected'); ?></dt>
		<dd>
			<?php echo h($destination['Destination']['selected']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Destination'), array('action' => 'edit', $destination['Destination']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Destination'), array('action' => 'delete', $destination['Destination']['id']), null, __('Are you sure you want to delete # %s?', $destination['Destination']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Destinations'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Destination'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Domains'), array('controller' => 'domains', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Domain'), array('controller' => 'domains', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Domains');?></h3>
	<?php if (!empty($destination['Domain'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Server Id'); ?></th>
		<th><?php echo __('Serversip Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Descriptions'); ?></th>
		<th><?php echo __('Keywords'); ?></th>
		<th><?php echo __('Added'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th><?php echo __('Project Domain'); ?></th>
		<th><?php echo __('Cache'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($destination['Domain'] as $domain): ?>
		<tr>
			<td><?php echo $domain['id'];?></td>
			<td><?php echo $domain['server_id'];?></td>
			<td><?php echo $domain['serversip_id'];?></td>
			<td><?php echo $domain['name'];?></td>
			<td><?php echo $domain['title'];?></td>
			<td><?php echo $domain['descriptions'];?></td>
			<td><?php echo $domain['keywords'];?></td>
			<td><?php echo $domain['added'];?></td>
			<td><?php echo $domain['modified'];?></td>
			<td><?php echo $domain['project_domain'];?></td>
			<td><?php echo $domain['cache'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'domains', 'action' => 'view', $domain['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'domains', 'action' => 'edit', $domain['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'domains', 'action' => 'delete', $domain['id']), null, __('Are you sure you want to delete # %s?', $domain['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Domain'), array('controller' => 'domains', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
